<?php


namespace App\library\services;


use App\Models\Slideshow;
use Illuminate\Http\Request;

class SlideShowService extends BaseServices
{

    /**
     * Author:YangXinPeng
     * 获取轮播图信息
     * @param $province
     * @return array
     */
    public static function getData($province)
    {
       if (!isset($province) || !is_numeric($province)){
           return self::fail('参数类型错误');
       }
       $data = Slideshow::where('province',$province)->get();
       $data && $data = $data->toArray();
       return self::success('成功',$data);
    }
}
